package com.kayt.cyberBar.company.business.dao;

import java.sql.SQLException;
import java.util.LinkedHashMap;
import java.util.List;

import com.kayt.cyberBar.common.PageData;
import com.kayt.cyberBar.company.business.entity.po.BCompanyActivityDiscountItem;

public interface ICompanyActivityDiscountItemDao {

	public Long addActivityItem(BCompanyActivityDiscountItem item) throws SQLException;

	public void updateActivityItem(BCompanyActivityDiscountItem item) throws SQLException;

	public int deleteActivityItem(BCompanyActivityDiscountItem item);

	public BCompanyActivityDiscountItem getActivityItem(String itemId);

	public boolean checkValidate(String name) throws SQLException;

	public BCompanyActivityDiscountItem getActivityItemByCode(String code) throws SQLException;

	public PageData<BCompanyActivityDiscountItem> getActivityItemList(int pageNum, int pageSize, String hql, Object[] params,
			LinkedHashMap<String, String> orderMap) throws SQLException;

	public List getActivityItemListByHql(int pageNum, int pageSize, String hql, Object[] params) throws SQLException;

	public void batchInsert(List<BCompanyActivityDiscountItem> itemList);

}
